//
//  AwemeListCell.h
//  Douyin
//
//  Created by Qiao Shi on 2018/7/30.
//  Copyright © 2018年 Qiao Shi. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "Constants.h"
#import "Masonry.h"
#import "FocusView.h"
#import "FavoriteView.h"
#import "HoverTextView.h"
#import "MusicAlbumView.h"
#import "AVPlayerView.h"
#import "CircleTextView.h"
#import "YLProgressBar.h"
#import "MHOpenRedPacketView.h"
//#import "Aweme.h"
#import "MHRedPacketBtn.h"

typedef void (^OnPlayerReady)(void);

@interface AwemeListCell : UITableViewCell

@property (nonatomic, strong) MHAwemeModel     *aweme;

@property (nonatomic, strong) AVPlayerView     *playerView;
@property (nonatomic, strong) HoverTextView    *hoverTextView;

@property (nonatomic, strong) CircleTextView   *musicName;
@property (nonatomic, strong) YYLabel          *desc;
@property (nonatomic, strong) UILabel          *nickName;

@property (nonatomic, strong) UILabel          *redPacketStatusLabel;


@property (nonatomic, strong) UILabel          *redPacketLeftLabel;

@property (nonatomic, strong) UIButton         *locationBtn;

@property (nonatomic, strong) MHRedPacketBtn         *redPacketBtn;

@property(nonatomic, strong) UIButton *enterBtn;

@property (nonatomic, strong) UIImageView      *avatar;
@property (nonatomic, strong) FocusView        *focus;
@property (nonatomic, strong) MusicAlbumView   *musicAlum;

@property (nonatomic, strong) UIImageView      *share;
@property (nonatomic, strong) UIImageView      *comment;

@property (nonatomic, strong) FavoriteView     *favorite;

@property (nonatomic, strong) UILabel          *shareNum;
@property (nonatomic, strong) UILabel          *commentNum;
@property (nonatomic, strong) UILabel          *favoriteNum;

@property (nonatomic, strong) OnPlayerReady    onPlayerReady;
@property (nonatomic, assign) BOOL             isPlayerReady;
@property(nonatomic, strong) YLProgressBar *progressBar;

@property(nonatomic, strong) MHOpenRedPacketView *openRedPacketView;

- (void)initData:(MHAwemeModel *)aweme;

-(void) configWithRedInfoWith:(MHAwemeModel *) model;

@property(nonatomic, strong) CLLocation *location;
//
-(void)play;

-(void)pause;

-(void)replay;

-(void) cancelTime;

- (void)redPacketCoutDown;

@end
